home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / C / ERR-P.H < prev    next >
Text File  |  1996-12-07  |  353b  |  22 lines

  1. void _error_(byte *s,byte a) {
  2.   printf("Error:%s\n",s);
  3.   if (a) {
  4.     printf("File:%s\n",buffn[ch]);
  5.     printf("Line:%d\n",bufln[ch]);
  6.   }
  7.   flush();
  8.   if (ho1on) close(ho1);
  9.   close(ho2);
  10.   unlink("asm.tmp");
  11.   unlink("_str_.tmp");
  12.   exit(2);
  13. }
  14.  
  15. void errorf(byte *s) {
  16.   _error_(s,1);
  17. }
  18.  
  19. void error(byte *s) {
  20.   _error_(s,0);
  21. }
  22.